#define _CRT_SECURE_NO_WARNINGS 1


#include"Heap.h"

int main()
{
	Heap hp;
	int arr[] = { 27, 15, 19, 18, 28, 34, 65, 49, 25, 37 };
	//int i = 0;
	//int len = sizeof(arr) / sizeof(arr[0]);
	//HeapCreate(&hp, arr, len);
	//for (i = 0; i < len; i++)
	//{
	//	HeapPush(&hp, arr[i]);
	//}
	//heapPrint(&hp);

	//HeapPush(&hp, 10);
	//heapPrint(&hp);

	//HeapPop(&hp);
	//heapPrint(&hp);

	//HeapPop(&hp);
	//heapPrint(&hp);

	HeapInit(&hp, arr);

	int* ret = HeapCreate(&hp, sizeof(arr) / sizeof(arr[0]));
	for (int i = 0; i < sizeof(arr) / sizeof(arr[0]); i++)
	{
		printf("%d ", ret[i]);
	}

	return 0;
}